#!/bin/bash
# 查找并终止app.py进程
PID=$(pgrep -f "/Users/yuanzuohui/Documents/code/python-env/ggfw-message-test/bin/python3 app.py")

if [ -z "$PID" ]; then
    echo "应用未在运行"
else
    kill $PID
    echo "已终止应用进程 (PID: $PID)"
fi